package com.example.sls.service.impl.field;

import com.example.sls.pojo.field.FieldManagement;
import com.example.sls.dao.field.FieldManagementDao;
import com.example.sls.service.intserfaces.field.FieldManagementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 场地信息管理表(FieldManagement)表服务实现类
 *
 * @author 蓝江富
 * @since 2024-06-18 10:55:13
 */
@Service
public class FieldManagementServiceImpl implements FieldManagementService {
  @Autowired
  FieldManagementDao fieldManagementDao;

  @Override
  public FieldManagement queryById(Integer id) {
    return fieldManagementDao.queryById(id);
  }

  @Override
  public int deleteById(Integer id) {
    return fieldManagementDao.deleteById(id);
  }

  @Override
  public int update(FieldManagement fieldManagement) {
    return fieldManagementDao.update(fieldManagement);
  }

  @Override
  public int insert(FieldManagement fieldManagement) {
    return fieldManagementDao.insert(fieldManagement);
  }

  @Override
  public long count() {
    return fieldManagementDao.count();
  }

  @Override
  public List<FieldManagement> queryAllByLimit(FieldManagement fieldManagement, Integer pageSize, Integer offset) {
    return fieldManagementDao.queryAllByLimit(fieldManagement, pageSize, offset);
  }
}
